package FrameWork;

import java.awt.Graphics;

public abstract class Entity 
{
	boolean gridDependant = true;
	protected boolean Solid = false;
	protected int x;
	protected int y;
	protected int pixelX;
	protected int pixelY;
	protected int width = 10;
	protected int height = 10;
	
	public Entity(int x,int y)
	{
		this.x = x;
		this.y = y;
		if (isGridDependant())
			pixelX = x*10; pixelY = y*10;
	}
	
	public abstract void draw(Graphics g);
	
	public boolean isGridDependant()
	{
		return gridDependant;
	}
	
	public void setGridDependant(boolean dep)
	{
		this.gridDependant = dep;
	}
	
	public int getX()
	{
		return x;
	}
	
	public int getY()
	{
		return y;
	}
	
	public void setX(int x)
	{
		this.x = x;
	}
	
	public void setY(int y)
	{
		this.y = y;
	}
}

